﻿@model Storytelling.Models.CriarContaViewModel        
@{
    ViewBag.Title = "Conta";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(false, "Account creation was unsuccessful. Please correct the errors and try again.")
    <fieldset>
        <legend>Formulário de Conta</legend>

        <div class="editor-label">
            @Html.LabelFor(m => m.Nome)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Nome)
            @Html.ValidationMessageFor(m => m.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Login)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Login)
            @Html.ValidationMessageFor(m => m.Login)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Senha)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.Senha)
            @Html.ValidationMessageFor(m => m.Senha)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmarSenha)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => m.ConfirmarSenha)
            @Html.ValidationMessageFor(m => m.ConfirmarSenha)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Narrador)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(m => m.Narrador)
        </div>

        <p>
            <input type="submit" value="Salvar" />
            <input type="button" value="Voltar" onclick="redirecionar('/Home')" />
        </p>
    </fieldset>
}
